package com.it.service.impl;

import com.it.mapper.MyCouponMapper;
import com.it.pojo.MyCoupon;
import com.it.service.MyCouponService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MyCouponServiceImpl implements MyCouponService {
    @Resource
    MyCouponMapper myCouponMapper;
    @Override
    public List<MyCoupon> selectCouponsByOwnerId(Integer ownerid) {
        return myCouponMapper.selectCouponsByOwnerId(ownerid);
    }

    @Override
    public List<MyCoupon> selectThresholdByOwnerId(Integer ownerid) {
        return myCouponMapper.selectThresholdByOwnerId(ownerid);
    }
}
